CC=gcc
CFLAGS=-Wall -DEBUG
basepath = ~/Thesis/CProjects/SourceCode
appexe = rasterscantest
apiobj1 = rasterScanTwoPass
apiobj2 = linkedList
objects = rasterTwoScanTest.o \
			 $(basepath)/API/$(apiobj1)/$(apiobj1).o \
			 $(basepath)/API/$(apiobj2)/$(apiobj2).o


$(appexe): $(objects)
	$(CC) $(CFLAGS) -o ../$(appexe) $(objects)
$(apiobj1).o: $(basepath)/API/$(apiobj1)/$(apiobj1).c
	$(CC) $(CFLAGS) -o $(basepath)/API/$(apiobj1)/$(apiobj1).c 
$(apiobj2).o: $(basepath)/API/$(apiobj2)/$(apiobj2).c
	$(CC) $(CFLAGS) -o $(basepath)/API/$(apiobj2)/$(apiobj2).c

clean:
	rm -f ../$(appEXE) $(objects)
